import React from 'react';
import {Link} from 'react-router-dom';


export default class Main extends React.Component{
    render(){
        return (
            <div>
                <ul>
                    <li><Link to="/home">首页</Link></li>
                    <li><Link to="/info">购买</Link></li>
                    <li><Link to="/about">关于</Link></li>
                </ul>
                {this.props.children}
            </div>
        );
    }
}

